package com.chuangke.flow.entity;

import java.util.ArrayList;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;

/**
 * 【请填写功能名称】对象 flow_ru_node
 * 
 * @author chuangke
 * @date "2020-09-27"
 */
public class FlowRuNode extends BaseNode {

	
    private static final long serialVersionUID = -151065976656760481L;
	
	private String orderId ;

	private String isPass ;

	@TableField(exist = false)
	private List<FlowRuNodeProcessor> processors;
	
	@TableField(exist = false)
	private List<FlowRuNode> nextNodes = new ArrayList<>();
	
	@TableField(exist = false)
	private List<FlowRuNode> conditionNodes ;

	@TableField(exist = false)
	private List<FlowListener> listeners ;

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getIsPass() {
		return isPass;
	}

	public void setIsPass(String isPass) {
		this.isPass = isPass;
	}

	public List<FlowRuNodeProcessor> getProcessors() {
		return processors;
	}

	public void setProcessors(List<FlowRuNodeProcessor> processors) {
		this.processors = processors;
	}

	public void addNextNode(FlowRuNode nextNode) {
		nextNodes.add(nextNode) ;
	}

	public void addAllNextNode(List<FlowRuNode> appendNextNodes) {
		nextNodes.addAll(appendNextNodes) ;
	}

	public List<FlowRuNode> getNextNodes() {
		return nextNodes;
	}

	public void setNextNodes(List<FlowRuNode> nextNodes) {
		this.nextNodes = nextNodes;
	}

	public List<FlowRuNode> getConditionNodes() {
		return conditionNodes;
	}

	public void setConditionNodes(List<FlowRuNode> conditionNodes) {
		this.conditionNodes = conditionNodes;
	}

	public List<FlowListener> getListeners() {
		return listeners;
	}

	public void setListeners(List<FlowListener> listeners) {
		this.listeners = listeners;
	}
}
